@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>管理</h5>
            </div>
            <div class="ibox-content">
                <div class="form-horizontal" id="contente">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="q_name" name="名称" />
                            </div>
                            <div class="col-sm-3">
                                <#selectDict id="type" name="类别" code="counterplanType"/>
                            </div>
                            <div class="col-sm-3">
                                <#selectDict id="level" name="响应等级"  code="responseLevel"/>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Counterplan.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="CounterplanTableToolbar" role="group">
                            @if(shiro.hasPermission("/counterplan/update")){
                            <#button name="修改" icon="fa-plus" clickFun="Counterplan.openCounterplanDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/counterplan/delete")){
                            <#button name="删除" icon="fa-plus" clickFun="Counterplan.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/counterplan/approve")){
                            <#button name="审核通过" icon="fa-check-circle" clickFun="Counterplan.approve()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/counterplan/unapprove")){
                            <#button name="审核未通过" icon="fa-warning" clickFun="Counterplan.unapprove()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/counterplan/detail")){
                            <#button name="预览内容" icon="fa-plus" clickFun="Counterplan.detail()" space="true"/>
                            @}
                        </div>
                        <#table id="CounterplanTable"/>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/yjya/counterplan/counterplan.js"></script>
@}
